import getClientViewer from "@/hooks/auth/getClientViewer";
import { PropsWithChildren } from "react";
import UserClientLayout from "./UserClientLayout";

const UserLayout = async ({ children }: PropsWithChildren) => {
  const user = await getClientViewer();
  return (
    <UserClientLayout user={user}>
      <main className="flex-grow container mx-auto py-8">
        <div className="bg-white shadow overflow-hidden sm:rounded-lg p-4">
          {children}
        </div>
      </main>
    </UserClientLayout>
  );
};
export default UserLayout;
